<?php
mysql_select_db($database_tecno, $tecno);
$query_detallespagos = "SELECT * FROM pagos, detallescliente WHERE detallescliente.id = '$id' AND detallescliente.idArt = pagos.idArt  AND pagos.status = '0' GROUP BY pagos.idPago ORDER BY pagos.idPago";
$detallespagos = mysql_query($query_detallespagos, $tecno) or die(mysql_error());
$row_detallespagos = mysql_fetch_assoc($detallespagos);
$totalRows_detallespagos = mysql_num_rows($detallespagos);
?>
